﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="multUpload.aspx.cs" Inherits="SindSaudeAdminUI.multUpload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Uplaoding Multiple Files</title>
    <link href="Scripts/uploadify.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Scripts/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="Scripts/swfobject.js"></script>
    <script type="text/javascript" src="Scripts/jquery.uploadify.v2.1.4.min.js"></script>
    
    <script type="text/javascript">
        $(document).ready(function () {
            $('#UploadFiles').uploadify({
                'uploader': 'Scripts/uploadify.swf',
                'script': 'uploader.ashx',
                'scriptdata': { 'id' : $("<%=lbltxt.ClientID%>").val() },
                'cancelImg': 'Scripts/cancel.png',
                'auto': 'true',
                'multi': 'true',
                'buttonText': 'Selecionar',
                'display': 'speed',
                'fileExt': '*.jpg;*.gif;*.png',
                'removeCompleted': false,
                'queueSizeLimit': 10000,
                'simUploadLimit': 20000
            });
        });
    </script>
    <!--<script type="text/javascript">
        $(function () {
            $('#fupMulti').uploadify({
                'auto': true,
                'buttonText': 'Selecionar',
                'cancelImg': 'Scripts/cancel.png',
                'display': 'speed',
                'fileExt': '*.jpg;*.gif;*.png',
                'folder': 'Upload',
                'multi': true,
                'queueSizeLimit': 1000,
                'queueID': 'arquivosContainer',
                'removeCompleted': false,
                'script': 'uploader.ashx',
                'scriptdata': { 'id': $("<%=lbltxt.ClientID%>").val() },
                'sizeLimit': '400000',
                'uploader': 'Scripts/uploadify.swf',
                'onSelectOnce': function (event, data) {
                    $('#status-message').text(data.filesSelected + 'foram adicionados a lista.');
                },
                'onAllComplete': function (event, data) {
                    $('#status-message').text(data.filesUploaded + 'arquivos, ' + data.erros + 'erros.');
                }
            });
        });

    </script>-->
</head>
<body>
   
    
    <form id="form1" runat="server">
        <asp:Label ID="lbltxt" runat="server" Text=""></asp:Label>
        <div id="UploadFiles"></div>
        <asp:Button ID="btnClear" runat="server" Text="Limpar" 
            onclick="btnClear_Click" />
    </form>    
</body>
</html>